{  Statement: http://acmp.ru/?main=task&id_task=124
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
        i,n,m,x,y:longint;
        a:array[0..110] of longint;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n,m);
for i:=1 to m do begin
    read(x,y);
    inc(a[x]);
    inc(a[y]);
end;
for i:=1 to n do
    write(a[i],' ');
end.